﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="He.Web.manage.nav.edit" %>

<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑栏目</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_edit runat="server" ID="uchead_edit" />
    <link href="../../plug/artDialog/skins/idialog.css" rel="stylesheet" type="text/css" />
    <script src="../../plug/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="../../plug/artDialog/artDialog.iframeTools.js" type="text/javascript"></script>
    <script type="text/javascript">
        function showModels() {
            art.dialog({
                title: '生成链接',
                content: '<%=new He.Web.UI.HtmlHelper().GetAllModels(lang) %>',
                lock: true
            });
        }
        function getLink(obj) {
            $('#txtLinkUrl').val($(obj).attr('link'));
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href='list.aspx?lang=<%=lang %>'>返回列表</a></span> <b>您当前的位置：首页
            &gt; 导航管理 &gt;编辑栏目</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                编辑栏目
            </th>
        </tr>
        <tr>
            <td align="right">
                栏目标题：
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="input w250 required" MaxLength="50"
                    HintTitle="栏目标题" HintInfo="控制在100个字数内。"></asp:TextBox>
            </td>
        </tr>
        <tr id="trReview" <%=ShowReview(imgurl) %>>
            <td align="right">
                图片预览：
            </td>
            <td>
                <img id="imgReview" src="<%=imgurl %>" class="myReview" alt="图片预览" />
            </td>
        </tr>
        <tr>
            <td align="right">
                图片：
            </td>
            <td>
                <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                    <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload',true)" /></a>
                <span class="uploading">正在上传，请稍候...</span>
            </td>
        </tr>
        <tr>
            <td align="right">
                链接地址：
            </td>
            <td id="links_td">
                <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="input w250" MaxLength="250"
                    HintTitle="链接地址" HintInfo="请填写链接地址，小于250个字符。"></asp:TextBox>
                <a href="javascript:showModels()">生成链接</a>
            </td>
        </tr>
        <tr>
            <td align="right">
                链接目标：
            </td>
            <td>
                <asp:RadioButtonList ID="rblTarget" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Selected="True" Value="_blank">新窗口 </asp:ListItem>
                    <asp:ListItem Value="_self">原窗口 </asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="right">
                排序：
            </td>
            <td>
                <asp:TextBox ID="txtSortId" runat="server" CssClass="input required number" size="10"
                    MaxLength="10" HintTitle="排序数字" HintInfo="纯数字，越小越向前。">0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                属性：
            </td>
            <td>
                <asp:CheckBox ID="chkLock" Text="隐藏" runat="server" />
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSubmit" runat="server" Text="确 认 保 存" CssClass="submit" OnClick="btnSubmit_Click" />
    </div>
    </form>
</body>
</html>
